package com.xm.service.service.impl;

import com.xm.mapper.AdminMapper;
import com.xm.pojo.Admin;
import com.xm.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {
    @Autowired
    private AdminMapper adminMapper;
    @Override
    public Admin findByUsername(String username) {
        return adminMapper.findByUsername(username);
    }

    @Override
    public void updateAdmin(Admin admin) {
       adminMapper.updateAdmin(admin);
    }

    @Override
    public void add(Admin admin) {
        adminMapper.add(admin);
    }
}
